package com.redstars.generate.convert;

import com.redstars.generate.entity.SysDatasource;
import com.redstars.generate.vo.SysDatasourceVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;

/**
* 数据源管理
*
* @author zhouhx 
* @since 1.0.0 2022-10-05
*/
@Mapper
public interface SysDatasourceConvert {
    SysDatasourceConvert INSTANCE = Mappers.getMapper(SysDatasourceConvert.class);

    SysDatasource convert(SysDatasourceVo vo);

    SysDatasourceVo convert(SysDatasource entity);

    List<SysDatasourceVo> convertList(List<SysDatasource> list);

}